package com.google.android.gms.common.api;

import android.app.PendingIntent;
import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.ReflectedParcelable;
import com.google.android.gms.common.internal.ShowFirstParty;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Class;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Constructor;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Field;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Param;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.VersionField;
import com.google.android.gms.common.util.VisibleForTesting;
import com.huawei.hms.adapter.internal.CommonCode.MapKey;
import o.aor;
import o.aos;
import o.aoz;
import o.apc;

@KeepForSdk
@Class(creator = "StatusCreator")
public final class Status extends AbstractSafeParcelable implements ReflectedParcelable {
    public static final Creator<Status> CREATOR = new aos();
    @KeepForSdk
    public static final Status ʻ = new Status(18);
    @ShowFirstParty
    private static final Status ʼ = new Status(17);
    @KeepForSdk
    public static final Status ˊ = new Status(16);
    @ShowFirstParty
    @KeepForSdk
    @VisibleForTesting
    public static final Status ˋ = new Status(0);
    @ShowFirstParty
    @KeepForSdk
    public static final Status ˎ = new Status(8);
    @ShowFirstParty
    @KeepForSdk
    public static final Status ˏ = new Status(15);
    @ShowFirstParty
    @KeepForSdk
    public static final Status ॱ = new Status(14);
    @VersionField(id = 1000)
    private final int ʽ;
    @Field(getter = "getPendingIntent", id = 3)
    @Nullable
    private final PendingIntent ͺ;
    @Field(getter = "getStatusMessage", id = 2)
    @Nullable
    private final String ॱॱ;
    @Field(getter = "getStatusCode", id = 1)
    private final int ᐝ;

    @Constructor
    @KeepForSdk
    public Status(@Param(id = 1000) int i, @Param(id = 1) int i2, @Param(id = 2) @Nullable String str, @Param(id = 3) @Nullable PendingIntent pendingIntent) {
        this.ʽ = i;
        this.ᐝ = i2;
        this.ॱॱ = str;
        this.ͺ = pendingIntent;
    }

    @KeepForSdk
    public Status(int i) {
        this(i, null);
    }

    @KeepForSdk
    public Status(int i, @Nullable String str) {
        this(1, i, str, null);
    }

    @Nullable
    public final String ˋ() {
        return this.ॱॱ;
    }

    public final int ˎ() {
        return this.ᐝ;
    }

    public final int hashCode() {
        return aoz.ॱ(Integer.valueOf(this.ʽ), Integer.valueOf(this.ᐝ), this.ॱॱ, this.ͺ);
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof Status)) {
            return false;
        }
        Status status = (Status) obj;
        if (this.ʽ == status.ʽ && this.ᐝ == status.ᐝ && aoz.ॱ(this.ॱॱ, status.ॱॱ) && aoz.ॱ(this.ͺ, status.ͺ)) {
            return true;
        }
        return false;
    }

    public final String ˏ() {
        if (this.ॱॱ != null) {
            return this.ॱॱ;
        }
        return aor.ˋ(this.ᐝ);
    }

    public final String toString() {
        return aoz.ˋ(this).ॱ("statusCode", ˏ()).ॱ(MapKey.HAS_RESOLUTION, this.ͺ).toString();
    }

    @KeepForSdk
    public final void writeToParcel(Parcel parcel, int i) {
        int ॱ = apc.ॱ(parcel);
        apc.ॱ(parcel, 1, ˎ());
        apc.ˎ(parcel, 2, ˋ(), false);
        apc.ˎ(parcel, 3, this.ͺ, i, false);
        apc.ॱ(parcel, 1000, this.ʽ);
        apc.ˎ(parcel, ॱ);
    }
}
